GBML manual / Backgrounds

actor_visible

Shows or hides the Background Actor. A hidden actor costs nothing to draw.

Game Boy: not available

Game Boy Color: not available

Sega Genesis: not built yet

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

actor_visible(visible)

Arguments

NameType
visiblebool

Returns

Nothing.

Description

Shows or hides the Background Actor. A hidden actor costs nothing to draw. It does nothing in a room that has no zoomable background.

It is the same switch as zoom_background_visible. Showing the actor is refused (it stays hidden) when that would put more regular layers on the screen than the console's picture mode has.

Example

// Create event of the boss: she waits out of sight until the fight begins.
actor_visible(false);

The picture is not drawn until a later actor_visible(true);.

On the GBA

A no-op in a room that has no zoomable background (set the room's Zoomable background to an actor picture). The same switch as zoom_background_visible. Showing it is refused (it stays hidden) when that would put more regular layers on the screen than the console's picture mode has.

See also: Background actorsactor_picturezoom_background_visible